<ion-view view-title="select_hospital" hide-nav-bar="true">
	<div class="headTitle">
		<button class="backIcon button icon ion-ios-arrow-back" ng-click="$ionicGoBack()">返回</button>
		<div class="search">
			<i class="icon iconfont icon-search searchIcon"></i>
			<a ui-sref="search">搜索医院</a>
			<!--<input type="text" placeholder="搜索医院"/>-->
			<i class="icon iconfont icon-scan code"></i>
		</div>
	</div>

    <ion-content class="selectHospital contentTop_cls" overflow-scroll="true" >
        <nav class="navCondition" >
            <ul>
                <li ng-click="navclick(0)">
                    <span>{{areaCon}}</span>
                    <i class="dir dirDown"></i>
                </li>
                <li ng-click="navclick(1)">
                    <span>{{typeCon}}</span>
                    <i class="dir dirDown"></i>
                </li>
            </ul>
            <div class="navBox">
                <div class="box">
                    <ul>
                        <li ng-repeat="area in areas" value="{{area.area_code}}" ng-click="areaFn($event)">{{area.area_name}}</li>
                    </ul>
                    <div class="more">
                        ——&nbsp;&nbsp;向下滑更多&nbsp;&nbsp; ——
                    </div>
                </div>
                <div class="box">
                    <ul>
                        <li ng-repeat="type in types" value="{{type.type_code}}" ng-click="typeFn($event)">{{type.type_name}}</li>
                    </ul>
                    <div class="more">
                        ——&nbsp;&nbsp;没有更多 &nbsp;&nbsp;——
                    </div>
                </div>
            </div>
        </nav>
        <!--  <ion-refresher pulling-text="向下滑更多" on-refresh="do_refresher()"></ion-refresher>-->
        on-swipe-up="do_infinite()"
        <section class="list_box"    >
                <ul class="list_hospital2" id="hosplist">
                    <li ng-repeat="hosp in hospitalArray" class="item_hospital2 clearfix"
                         ui-sref="selectOffice({hopId:hosp.hopId,hopName:hosp.name,addr:hosp.addr})">
                        <div class="left fl"><img ng-src="{{hosp.imgsrc}}" alt="" /></div>
                        <div class="right fl">
                            <h5>{{hosp.name}}</h5>
                            <div class="case"><i>{{hosp.grade}}</i><span>月诊 {{hosp.vis}}</span></div>
                            <div class="type">
                                <i ng-repeat="item in hosp.items" class="{{item.class}}">{{item.name}}</i>
                            </div>
                        </div>
                    </li>
                    <div id="selecthospitalTile" class="loadmore">——&nbsp;&nbsp;向下滑更多 &nbsp;&nbsp;——</div>
                    <li style="height: 10px;"></li>
                </ul>
            </section>
        <!--<ion-infinite-scroll on-infinite="do_infinite()"
                             distance="1%">
        </ion-infinite-scroll>-->
    </ion-content>
 
</ion-view>